﻿@{
    ViewBag.Title = "Users";
}

<h2>Users</h2>

<table width="100%">
    <thead>
        <tr>
            <th>Username</th>
            <th>Role</th>
            <th>LastActivityTime</th>
        </tr>
    </thead>
    <tbody>
    @if (ViewBag.Users != null)
    {
        foreach (Rehabilitation.Models.User user in ViewBag.Users)
        {
            <text>
                <tr>
                    <td>@user.UserName</td>
                    <td>@user.Roles.SourceRoleName</td>
                    <td>@user.LastActivityDate</td>
                </tr>
            </text>
        }
    }
    </tbody>
</table>
